package com.lottery.material.service.portal.article.impl;

import com.lottery.material.dao.article.ArticlePictureInfoMapper;
import com.lottery.material.pojo.article.ArticlePictureInfo;
import com.lottery.material.service.portal.article.ArticlePictureInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:    文章图片地址信息服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-24 19:32
 */
@Service
public class ArticlePictureInfoServiceImpl implements ArticlePictureInfoService {

    @Autowired
    private ArticlePictureInfoMapper articlePictureInfoMapper;

    /**
     * description: 根据文章id查询文章配图
     * author sunny
     * createDate 2019-04-24 下午 7:35
     * @param articleId
     * @return
     */
    @Override
    public List<ArticlePictureInfo> findByArticleId(String articleId) {
        return articlePictureInfoMapper.findByArticleId(articleId);
    }
}
